﻿using System;

namespace RuoVea.Autowired
{
    /// <summary>
    /// Autowired属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
    public class AutowiredAttribute : Attribute
    {
        /// <summary>
        /// 服务唯一标识
        /// </summary>
        public string Identifier { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public AutowiredAttribute()
        {

        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="identifier">identifier</param>
        public AutowiredAttribute(string identifier)
        {
            Identifier = identifier;
        }
    }
}
